package com.webside.videoresource.service.impl;

 
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.base.baseservice.impl.AbstractService;
import com.webside.util.PageUtil;
import com.webside.videoresource.mapper.VideoResourceMapper;
import com.webside.videoresource.model.VideoResourceEntity;
import com.webside.videoresource.service.VideoResourceService;

@Service("videoResourceService")
public class VideoResourceServiceImpl extends AbstractService<VideoResourceEntity, Long>
		implements VideoResourceService {

	@Autowired
	private VideoResourceMapper videoResourceMapper;

	// 这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper
	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(videoResourceMapper);
	}

	@Override
	public List<VideoResourceEntity> selectall(int count,String sort) {
		// TODO Auto-generated method stub
		return videoResourceMapper.selectall(count,sort);
	}

	@Override
	public List<VideoResourceEntity> findListByName(PageUtil pageUtil,String sort) {
		// TODO Auto-generated method stub
		return videoResourceMapper.findListByName( pageUtil,sort);
	}

	 
	 
}
